package com.aspose.cells;

class zape {
   public static double a = ((zyy)a(1.0D)).k();
   public static double b = ((zyy)b(1.0D)).k();
   public static double c;

   public static zagu a(double var0) {
      if (!Double.isInfinite(var0) && !Double.isNaN(var0)) {
         long var2 = Double.doubleToRawLongBits(var0);
         if (var2 == 0L) {
            ++var2;
            return new zyy(Double.longBitsToDouble(var2) - var0);
         } else {
            return var2-- < 0L ? new zyy(Double.longBitsToDouble(var2) - var0) : new zyy(var0 - Double.longBitsToDouble(var2));
         }
      } else {
         return zzb.a;
      }
   }

   public static zagu b(double var0) {
      zagu var2 = a(var0);
      return (zagu)(var2.b() == 0 ? var2 : new zyy(2.0D * ((zyy)var2).k()));
   }

   public static boolean a(double var0, double var2, double var4, double var6) {
      if ((var0 != 0.0D || Math.abs(var2) >= var6) && (var2 != 0.0D || Math.abs(var0) >= var6)) {
         return Math.abs(var4) < var6 * Math.max(Math.abs(var0), Math.abs(var2));
      } else {
         return true;
      }
   }

   public static boolean a(double var0, double var2) {
      return a(var0, var2, var0 - var2, c);
   }

   static {
      c = 10.0D * b;
   }
}
